package com.conan.springjdbc.service;

import com.conan.springjdbc.bean.Student;
import com.conan.springjdbc.dao.IStudentDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentService implements IStudentService
{
    @Autowired
    IStudentDao studentDao;

    @Override
    public String insert(Student student) {
       String str =  studentDao.insert(student);
       return str;
    }

    @Override
    public String update(Student student) {
        String str = studentDao.update(student);
        return str;
    }
}
